package com.lantu.wisdom.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description:
 * @Author: duhui
 * @Date: 2020/6/18 11:43
 */
@ApiModel(value = "小程序活动下单DTO")
public class PlaceOrderDTO implements Serializable{



    /**
     * 商品描述
     */
    @ApiModelProperty(value = "商品描述")
    String body;
    /**
     * 商品详情
     */
    @ApiModelProperty(value = "商品详情")
    String detail;


    /**
     * 支付金额
     */
    @ApiModelProperty(value = "支付金额")
    BigDecimal total;

    @ApiModelProperty(value = "openId")
    String openId;

   /* @ApiModelProperty(value = "活动编码")
    String activityCode;*/

  /*  public String getActivityCode() {
        return activityCode;
    }

    public void setActivityCode(String activityCode) {
        this.activityCode = activityCode;
    }*/

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return "PlaceOrderDTO{" +
                "body='" + body + '\'' +
                ", detail='" + detail + '\'' +
                ", total=" + total +
                ", openId='" + openId + '\'' +
                '}';
    }

    public String paramSplicing() {
        return "{" +
                "" + body + '\'' +
                "," + detail + '\'' +
                "," + total +
                "," + openId + '\'' +
                '}';
    }
}
